package com.example.seataorder;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author MoodAir
 */
@RestController
@RequiredArgsConstructor
public class OrderController {
    
    private final OrderService orderService;
    
    @GetMapping("/save-order")
    public Boolean saveOrder(@RequestParam Long productId, @RequestParam Integer count) {
        orderService.saveOrder(productId, count);
        return true;
    }
}